<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib/tree" prefix="tree"%>
<%@taglib prefix="frame" uri="http://www.framework.com/taglib"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<form id="addprofessorDataForm" method="post">
   <input type="hidden" name="projId" size="15" value="${professorInfo.projId}"/> 
   <input type="hidden" name="id" size="15" value="${professorInfo.id}"/>
	<table class="infoTable">
		<tbody>	
		<tr>
			<th align="right" >姓名</th>
			<td><input name="name" class="easyui-validatebox" id="name" size="35" value="${professorInfo.name}" data-options=""/>
			</td>			
		</tr>
		<tr>
			<th align="right" >单位</th>
			<td>
			<input name="deptName" class="easyui-validatebox" size="35" value="${professorInfo.deptName}" data-options=""/>
			</td>
		</tr>
		
		<tr>		
			<th align="right" >职称</th>
			<td><input name="title" class="easyui-validatebox" size="35" value="${professorInfo.title}" data-options="" maxlength="6"/>
			</td>
		</tr>
		<tr>
			<th align="right" >联系方式</th>
			<td><input name="tel" class="easyui-validatebox" size="35" value="${professorInfo.tel}" data-options="" maxlength="50"/>
			</td>
		</tr>
		<tr>
			 <th align="right" >人员类型</th>
				 <td align="center">
<!-- 					 <select class="easyui-combobox" id="type" name="type" style="width:150px;"   data-options="validType:'comboVry'" >  -->
					 <select class="easyui-combobox" id="type" name="type" style="width:150px;"   data-options="validType:'comboVry'" > 

										    <option value="" >--请选择类型--</option>  
										    <option value="1">专家</option>
										    <option value="2">监督员</option>   
										    <option value="3">业主</option>  
					</select>
				</td>
			 </tr>					
		</tbody>
	</table>
</form>
<script type="text/javascript">
$(document).ready(
     function seleced(){
    	  $("#type").find("option[value='${professorInfo.type}']").attr("selected",true);
      });
$.extend($.fn.validatebox.defaults.rules, {
    comboVry: {
        validator: function (value) {//param为默认值
            return value !="--请选择类型--";
        },
        message: '请选择类型'
    }
});    
</script>
